/*
 * @Author: Olivia
 * @Date: 2022-08-09 23:09:42
 * @LastEditTime: 2022-08-30 21:00:59
 * @FilePath: \toutiao-m\src\api\channels.js
 * @custom_string_Olivia: Less is more
 */
import request from '@/utils/request'
export const getChannels = () => {
  return request({
    url: '/app/v1_0/channels',
    method: 'GET'
  })
}
// 批量修改用户频道列表（部分覆盖）
export const addUserChannels = (channels) => {
  return request({
    url: '/app/v1_0/user/channels',
    method: 'PATCH',
    data: {
      channels: [channels]
    }
  })
}
// 删除指定用户频道列表（部分覆盖）
export const deleteUserChannels = (channelsId) => {
  return request({
    url: `/app/v1_0/user/channels/${channelsId}`,
    method: 'DELETE'
  })
}
